Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Mar 2, 2015

I've created this branch adding http-proxy module to pipe the request/response "as-is" without modification directly to target server. This mode is active only for ulrs matching the patterns in config.directProxyUrls list. This solves the issue #6.

There is also a new middleware bodyParserWrapper that apply the middleware based on configuration for some urls.

I left the rest of the proxied requests with the original code using request. But I strongly suggest to switch all requests to use http-proxy so you won't need any further analysis/parse of the request/response. The http-proxy module is very flexible and powerful.

@ghost
Copy link
Author

ghost commented Mar 2, 2015

Sorry for the double pull request. I renamed my branch after the pull request.

luismesas added a commit that referenced this pull request Mar 2, 2015
@luismesas luismesas merged commit 035186f into thegameofcode:master Mar 2, 2015
@ghost ghost deleted the feature-upload-images-proxy branch September 9, 2015 13:49
luismesas pushed a commit that referenced this pull request Feb 8, 2016
Stringify body in prepareOptions middleware only if body exists, in o…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant